home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 October: Mac OS SDK / Dev.CD Oct 97 SDK1.toast / Development Kits (Disc 1) / Apple Shared Library Manager / ASLM Examples / FunctionSetInfo / Sources / MathFSet.h next >
Encoding:
C/C++ Source or Header  |  1996-11-19  |  1014 b   |  39 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        MathFSet.h
  3.  
  4.     Contains:    Common header file for all function sets with the
  5.                 "Math" interface.
  6.  
  7.     Copyright:    © 1993 by Apple Computer, Inc., all rights reserved.
  8.  
  9. */
  10.  
  11.  
  12. #ifndef __MATHFSET__
  13. #define __MATHFSET__
  14.  
  15. // Here we define an interface id that will be common to all the
  16. // function sets that share the same interface
  17.  
  18. #define kMathFSetInterfaceID    "appl:math$Math,1.1"
  19.  
  20. // Here we define a names that the functions will be given so the
  21. // user can lookup them up with GetFunctionPointer().
  22.  
  23. #define kMathFunctionName1    "MathFunction1"
  24. #define kMathFunctionName2    "MathFunction2"
  25.  
  26. // Here we define the interface to each of the functions so the user knows
  27. // what to cast the result of GetFunctionPointer() to.
  28.  
  29. typedef int    (*MathFunction1ProcPtr)(int, int);
  30. typedef int    (*MathFunction2ProcPtr)(int, int, int);
  31.  
  32. // The prototypes for the functions are so the function set writers are
  33. // sure to get the interface right.
  34.  
  35. int MathFunction1(int a, int b);
  36. int MathFunction2(int a, int b, int c);
  37.  
  38.  
  39. #endif